function image_good_click(id){
	$.post("click_update.php?click_type=image_good", {id: id},
			function(result){
				var res = jQuery.parseJSON(result);
						var return_id=res.id;
						var return_image_good_val=res.image_good;
						 $("#image_good_"+return_id+"").html("("+return_image_good_val+")");
					}
			);
}

function image_bad_click(id){
	$.post("click_update.php?click_type=image_bad", {id: id},
			function(result){
				var res = jQuery.parseJSON(result);
						var return_id=res.id;
						var return_image_bad_val=res.image_bad;
						 $("#image_bad_"+return_id+"").html("("+return_image_bad_val+")");
					}
			);
}

function image_collect_click(id){
	$.post("click_update.php?click_type=image_collect", {id: id},
			function(result){
				var res = jQuery.parseJSON(result);
						var return_openid_empty=res.openid_empty;
						var return_user_image_is=res.user_image_is;
						if(return_openid_empty == 1){alert("收藏失败，请开启'COOKIE'");}
						if(return_user_image_is == 1){alert("请不要重复收藏！");}
						if(return_user_image_is == 2){alert("收藏成功！");}
						
					}
			);
}

//内涵笑话
function joke_good_click(id){
	$.post("click_update.php?click_type=joke_good", {id: id},
			function(result){
				var res = jQuery.parseJSON(result);
						var return_id=res.id;
						var return_joke_good_val=res.joke_good;
						 $("#joke_good_"+return_id+"").html("("+return_joke_good_val+")");
					}
			);
}

function joke_bad_click(id){
	$.post("click_update.php?click_type=joke_bad", {id: id},
			function(result){
				var res = jQuery.parseJSON(result);
						var return_id=res.id;
						var return_joke_bad_val=res.joke_bad;
						 $("#joke_bad_"+return_id+"").html("("+return_joke_bad_val+")");
					}
			);
}
function joke_collect_click(id){
	$.post("click_update.php?click_type=joke_collect", {id: id},
			function(result){
				var res = jQuery.parseJSON(result);
						var return_openid_empty=res.openid_empty;
						var return_user_joke_is=res.user_joke_is;
						if(return_openid_empty == 1){alert("收藏失败，请开启'COOKIE'");}
						if(return_user_joke_is == 1){alert("请不要重复收藏！");}
						if(return_user_joke_is == 2){alert("收藏成功！");}
						
					}
			);
}